<?php

namespace common\models\trend;

use Yii;

/**
 * This is the model class for table "{{%trend_log}}".
 *
 * @property int $id
 * @property int $user_id 用户ID
 * @property string $type 用户ID
 * @property int $num 数量
 * @property int $current 当前账户
 * @property int $rule_id 获取规则ID
 * @property string $mark 日志描述
 * @property int $created_at 获取时间
 */
class TrendLog extends \common\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%trend_log}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['user_id', 'num', 'current', 'rule_id', 'created_at'], 'integer'],
            [['type'], 'string', 'max' => 20],
            [['mark'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'user_id' => '用户ID',
            'type' => '用户ID',
            'num' => '数量',
            'current' => '当前账户',
            'rule_id' => '获取规则ID',
            'mark' => '日志描述',
            'created_at' => '获取时间',
        ];
    }
}
